/**
 * Created by Administrator on 9/29/2016.
 */
import javax.swing.JFrame;

public class Main
{
    public static void main(String[] args)
    {
        Shape panel = new Shape();
        JFrame application = new JFrame();

        application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //设置窗口有三个按钮
        application.add(panel); //把panel加入到JFrame中去
        application.setSize(300,300);
        application.setVisible(true);
    }
}
